package com.dhh.web.modules.user.repo;

import com.dhh.web.modules.user.domain.Role;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * @Auther: dhh
 * @Date: 2018/11/22 16:37
 * @Email: fzlinjianhui@163.com
 * @Description:
 */
public interface RoleRepo extends JpaRepository<Role,String> {

    Optional<Role> findByName(String name);

    Optional<Role> findByRoleCode(String RoleCode);



}
